import { Entity, PrimaryGeneratedColumn, Column, BaseEntity, ManyToOne, OneToMany, JoinColumn, ManyToMany, JoinTable } from 'typeorm';

@Entity('setting_setting')
export class SettingSetting extends BaseEntity {
  @PrimaryGeneratedColumn({ comment: '设置id' })
  setting_id: number;

  @Column({ default: 0, comment: 'favicon文件id' })
  favicon_id: number;

  @Column({ default: 0, comment: 'logo文件id' })
  logo_id: number;

  @Column({ length: 255, default: '', comment: '名称' })
  name: string;

  @Column({ length: 255, default: '', comment: '标题' })
  title: string;

  @Column({ length: 255, default: '', comment: '关键词' })
  keywords: string;

  @Column({ length: 255, default: '', comment: '描述' })
  description: string;

  @Column({ length: 255, default: '', comment: '备案号' })
  icp: string;

  @Column({ length: 255, default: '', comment: '版权' })
  copyright: string;

  @Column({ default: 0, comment: '公众号二维码文件id' })
  offi_id: number;

  @Column({ default: 0, comment: '小程序码文件id' })
  mini_id: number;

  @Column({ length: 255, default: '', comment: '地址' })
  address: string;

  @Column({ length: 255, default: '', comment: '电话' })
  tel: string;

  @Column({ length: 255, default: '', comment: '传真' })
  fax: string;

  @Column({ length: 255, default: '', comment: '手机' })
  mobile: string;

  @Column({ length: 255, default: '', comment: '邮箱' })
  email: string;

  @Column({ length: 255, default: '', comment: '微信' })
  wechat: string;

  @Column({ length: 255, default: '', comment: 'QQ' })
  qq: string;

  @Column({ length: 127, default: '', comment: 'SMTP服务器' })
  email_host: string;

  @Column({ length: 7, default: 'ssl', comment: 'SMTP协议' })
  email_secure: string;

  @Column({ length: 7, default: '', comment: 'SMTP端口' })
  email_port: string;

  @Column({ length: 255, default: '', comment: 'SMTP账号' })
  email_username: string;

  @Column({ length: 255, default: '', comment: 'SMTP密码' })
  email_password: string;

  @Column({ length: 255, default: '', comment: 'SMTP名称' })
  email_setfrom: string;

  @Column({ default: 0, comment: '添加用户id' })
  create_uid: number;

  @Column({ default: 0, comment: '修改用户id' })
  update_uid: number;

  @Column({ type: 'datetime', nullable: true, comment: '添加时间' })
  create_time: Date;

  @Column({ type: 'datetime', nullable: true, comment: '修改时间' })
  update_time: Date;

  @Column({ length: 1000, nullable: true, comment: '统计代码' })
  statistics: string;

  @Column({ length: 256, nullable: true, comment: '站长推送api' })
  zhanzhangapi: string;
}